let mongoose=require("./db");

let formation_list=mongoose.Schema({
    img:String,
    name:String,
    picture:String,
    content:String,
    title:String,
    date:String,
    address:String,
    num:Number
})
let forlist=mongoose.model('forlist',formation_list)
let dyx_travel_list=mongoose.Schema({
    name:String,
    address:String,
    level:String,
    price:String,
    score:Number,
    img:[String]
})
let dyx_travel=mongoose.model('dyx_travel',dyx_travel_list)
let dyx_pl=mongoose.Schema({
    name:String,
    img:String,
    date:String,
    address:String,
    desc:String
})
let dyx_pl_list=mongoose.model('dyx_pl_list',dyx_pl)
module.exports={forlist,dyx_travel,dyx_pl_list}
//历史记录
let dyx_history_list=mongoose.Schema({
    name:String
})
let dyx_history=mongoose.model('dyx_history',dyx_history_list)
module.exports={forlist,dyx_travel,dyx_history}
